package com.egreen.asset.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.egreen.common.pojo.DTO.asset.BalanceAccountDTO;
import com.egreen.common.pojo.DTO.asset.OperateBalanceRecordingDTO;
import com.egreen.common.pojo.entity.asset.OperateBalanceRecording;
import com.egreen.common.pojo.VO.asset.OperateBalanceRecordingVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author cloudJiang
 * @since 2022-07-16
 */
public interface IOperateBalanceRecordingService extends IService<OperateBalanceRecording> {
    /**
     * 余额增加与减少
     *
     * @param operateBalanceRecordingDTO
     */
    int updateByBalance(OperateBalanceRecordingDTO operateBalanceRecordingDTO);

    /**
     * 通过用户ID查询余额操作记录
     *
     * @param balanceAccountId
     * @return
     */
    List<OperateBalanceRecordingVO> selectBalanceById(Long balanceAccountId);

    /**
     * 通过ID查找到余额账户信息
     *
     * @param id
     * @return
     */
    BalanceAccountDTO selectBalanceAccountById(Long id);

}
